<?php
class Controller_Dev extends Controller_Abstract
{
	
	public function actionTimeconvert()
	{
		if($this->_context->isAJAX()){
			$timeVal = $this->_context->timeVal;
			if(is_numeric($timeVal)){
				$timeVal = date('Y-m-d H:i:s', $timeVal);
			}else{
				$timeVal = strtotime($timeVal);
			}
			return "$timeVal";
		}
	}
}